@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'E_MENU'
@Metadata.ignorePropagatedAnnotations: true

@OData.hierarchy.recursiveHierarchy: [{entity.name: 'YPSM0010_H_FORM'}]

@Metadata.allowExtensions: true
define view entity YPSM0010_E_MENU 
    as projection on YPSM0010_I_MENU
{
    key FormId,
    key MenuId,
    ParentMenu,
    MenuName,
    MenuSeq,
    CreateDate,
    CreateBy,
    LocalLastChangedBy,
    LocalLastChangedAt,
    LastChangedAt,
    /* Associations */
    _Menu : redirected to YPSM0010_E_MENU,
    _ParentMenu : redirected to YPSM0010_E_MENU,
    _PForm : redirected to parent YPSM0010_E_FORM
}
